""""
演示面向对象中成员方法和成员变量的定义和使用
"""

#定义一个带有成员方法的类
class Student:
    name = None

    def say_hi1(self):
        print(f"大家好呀,我是{self.name}")

    def say_hi2(self,msg):
        print(f"大家好,我是{self.name},{msg}")


stu_1 = Student()
stu_1.name = "周杰伦"
stu_1.say_hi2("哎哟不错哟")

stu_2 = Student()
stu_2.name = "林俊杰"
stu_2.say_hi2("小伙子我看好你")

